/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package data;

import AjouConquerorBeans.Login;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author ajou
 */
@Stateless
public class BuildingEntityFacade extends AbstractFacade<BuildingEntity> {
    @PersistenceContext(unitName = "AjouConquerorServer-ejbPU")
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public BuildingEntityFacade() {
        super(BuildingEntity.class);
    }
    
    public void newBuilding(String name, double lat, double log) {
        create(new BuildingEntity(name, lat, log));
    }
    
}
